#!/bin/bash

echo "hello world" > a.txt
echo "hello world" >> a.txt
date >> a.txt

# >>追加 >覆盖
xxx 2>>a.txt